


"""
这是一个异步抓取多个url的示例，每个base_url都是一个task
"""
config = {
    "version": 1,
    "disable_existing_loggers": False,  # 这里有一个小坑
    "formatters": {
        "gavin": {
            "format": "[%(levelname)-8s] %(asctime)s %(levelname)-8s: %(message)s",

        },
    },
    "handlers": {
        "console": {
            "level": "DEBUG",
            "class": "logging.StreamHandler",
            "formatter": "gavin",
        },
    },
    "loggers": {
        "": {
            "handlers": ["console"],
            "level": "DEBUG",
        }
    }
}

# import logging
#
# logging.basicConfig(level=logging.DEBUG,
#                     format='%(levelname)s %(asctime)s %(message)s %(pathname)s',
#                     datefmt='%a, %d %b %Y %H:%M:%S',
#                     filename='log.log',
#                     filemode='w+')

